<!DOCTYPE html>
<html>
<head>
	<title></title>
	<script type="text/javascript" src="../js/require.js"></script>
	<script type="text/javascript">
		require(['../js/jquery-1.11.3.js','../js/utils.js'],function(a,log){
			// console.log(a.jQuery);
			
			// alert(1);
			log('load success!');
			// alert(document.getElementById('test').tagName);
			function getAbsoluteUrl(url){ 
				var a = document.createElement('A'); 
				a.href = url; // 设置相对路径给Image, 此时会发送出请求 
				url = a.href; // 此时相对路径已经变成绝对路径 
				log(url);
				return url; 
			} 
			getAbsoluteUrl("./test.js"); 
		});

	</script>
</head>

<body>
<div id="test">ttt</div>
</body>
</html>